package cmd

type CmdType string

const (
	RESTAPI_REGISTER                 = CmdType("register")
	RESTAPI_LOGIN                    = CmdType("login")
	RESTAPI_UPDATE                   = CmdType("update")
	RESTAPI_USERLIST                 = CmdType("userlist")
	RESTAPI_GROUPLIST                = CmdType("grouplist")
	RESTAPI_ADDFRIEND                = CmdType("addfriend")
	RESTAPI_NEWFRIEND_APPLY_FOR_LIST = CmdType("newfriendsapplyforlist")
	RESTAPI_CONFIRM_MAKE_FRIEND      = CmdType("confirmmakefriend")
)

type RimResponse struct {
	RestApi    CmdType `json:"restapi"`
	StatusCode int     `json:"statuscode"`
	ErrMsg     string  `json:"errmsg"`

	CmdBody interface{} `json:"cmdbody,omitempty"`
	MsgBody interface{} `json:"msgbody,omitempty"`
}
